/**
 * 函数表达式 api 封装
 *
 * @Author:    zzx
 * @Date:      2025-08-05 10:54:11
 * @Copyright  zzx
 */
import { postRequest, getRequest } from '/@/lib/axios';

export const funcExpressionApi = {

  /**
   * 分页查询  @author  zzx
   */
  queryPage : (param) => {
    return postRequest('/funcExpression/queryPage', param);
  },
  /**
    * 查询全部  @author  zzx
  */
  queryAll : (param) => {
    return postRequest('/funcExpression/queryAll', param);
  },
  /**
    * 查询全部  @author  zzx
  */
  calculate : (param) => {
    return postRequest('/funcExpression/calculate', param);
  },

  /**
   * 增加  @author  zzx
   */
  add: (param) => {
      return postRequest('/funcExpression/add', param);
  },

  /**
   * 修改  @author  zzx
   */
  update: (param) => {
      return postRequest('/funcExpression/update', param);
  },


  /**
   * 删除  @author  zzx
   */
  delete: (id) => {
      return getRequest(`/funcExpression/delete/${id}`);
  },

  /**
   * 批量删除  @author  zzx
   */
  batchDelete: (idList) => {
      return postRequest('/funcExpression/batchDelete', idList);
  },

};
